package org.xlx.xlx_oa.role_user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.xlx.xlx_oa.common.BaseEntity;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "路由对象", description = "")
public class SysRoute extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "路由id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "路由名称")
    private String name;
    @ApiModelProperty(value = "路由path")
    private String path;
    @ApiModelProperty(value = "组件名称")
    private String component;
    @ApiModelProperty(value = "是否传参")
    private Boolean props;
    @ApiModelProperty(value = "是否隐藏")
    private Boolean hidden;
    @ApiModelProperty(value = "路由图标")
    private String icon;
    @ApiModelProperty(value = "父路由id")
    private Long parentId;
    @ApiModelProperty(value = "路由序号")
    private Integer orderNo;
    @ApiModelProperty(value = "是否叶子路由")
    private Boolean isLeaf;

}
